Global Index
HTML5 JS API Index > DOM Tutorials & Specs

Attr

Attr objects are simply known as attributes. They are sometimes referred to as content attributes to avoid confusion with IDL attributes.

Properties
DOMString
localName
The localName attribute must return the local name.
DOMString
name
The name attribute must return the name.
DOMString?
namespaceURI
The namespaceURI attribute must return the namespace.
DOMString?
prefix
The prefix attribute must return the namespace prefix.
boolean
specified
The specified attribute must return true.
DOMString
value
The value attribute must return the value.
Referenced by
Elementattributes